<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: aruntime/src/main/java/nars/language/SetExt.java Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d3/d96/SetExt_8java_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">SetExt.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d3/d96/SetExt_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * SetExt.java</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2008  Pei Wang</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This file is part of Open-NARS.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Open-NARS is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * Open-NARS is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * along with Open-NARS.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">package </span>nars.language;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">import</span> java.util.*;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../db/d64/namespacenars_1_1io.html">io</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.<a class="code" href="../../de/ddc/namespacenars_1_1storage.html">storage</a>.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt.html">   31</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt.html">SetExt</a> <span class="keyword">extends</span> <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">CompoundTerm</a> {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt_ab26ebcb2d41a9516f35e6b53bb856223.html#ab26ebcb2d41a9516f35e6b53bb856223">   38</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_ab26ebcb2d41a9516f35e6b53bb856223.html#ab26ebcb2d41a9516f35e6b53bb856223">SetExt</a>(ArrayList&lt;Term&gt; arg) {</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        super(arg);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt_a7b16a160a4ff942fc44eba1b0d48cbb0.html#a7b16a160a4ff942fc44eba1b0d48cbb0">   49</a></span>&#160;    <span class="keyword">private</span> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_a7b16a160a4ff942fc44eba1b0d48cbb0.html#a7b16a160a4ff942fc44eba1b0d48cbb0">SetExt</a>(String n, ArrayList&lt;Term&gt; cs, <span class="keywordtype">boolean</span> con, <span class="keywordtype">short</span> i) {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        super(n, cs, con, i);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    }</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt_aad126e022fc7ce5cf5ed1112655ba413.html#aad126e022fc7ce5cf5ed1112655ba413">   57</a></span>&#160;    <span class="keyword">public</span> Object <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_aad126e022fc7ce5cf5ed1112655ba413.html#aad126e022fc7ce5cf5ed1112655ba413">clone</a>() {</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_ab26ebcb2d41a9516f35e6b53bb856223.html#ab26ebcb2d41a9516f35e6b53bb856223">SetExt</a>(<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term_a059f44677d4580c0eef198dfba957b6b.html#a059f44677d4580c0eef198dfba957b6b">name</a>, (ArrayList&lt;Term&gt;) <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a4f199daa7588f86b81b0912a5e52dfe0.html#a4f199daa7588f86b81b0912a5e52dfe0">cloneList</a>(<a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_ad340d3bb55dcfcdf237fe4ee225d3cbb.html#ad340d3bb55dcfcdf237fe4ee225d3cbb">components</a>), <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_aee0ef6fd533b58caf22bee2a98eef67d.html#aee0ef6fd533b58caf22bee2a98eef67d">isConstant</a>(), <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a5e337444f74e870264191c7fbc13cd6d.html#a5e337444f74e870264191c7fbc13cd6d">complexity</a>);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    }</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt_aa8f6526a59c3d7e578dd76a0eab75a0e.html#aa8f6526a59c3d7e578dd76a0eab75a0e">   67</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_aa8f6526a59c3d7e578dd76a0eab75a0e.html#aa8f6526a59c3d7e578dd76a0eab75a0e">make</a>(<a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> t, <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a> memory) {</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        TreeSet&lt;Term&gt; set = <span class="keyword">new</span> TreeSet&lt;Term&gt;();</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        set.add(t);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_aa8f6526a59c3d7e578dd76a0eab75a0e.html#aa8f6526a59c3d7e578dd76a0eab75a0e">make</a>(set, memory);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt_afb1d9da4ecf7f489cb3a505173ddb205.html#afb1d9da4ecf7f489cb3a505173ddb205">   79</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_afb1d9da4ecf7f489cb3a505173ddb205.html#afb1d9da4ecf7f489cb3a505173ddb205">make</a>(ArrayList&lt;Term&gt; argList, <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a> memory) {</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        TreeSet&lt;Term&gt; set = <span class="keyword">new</span> TreeSet&lt;Term&gt;(argList); <span class="comment">// sort/merge arguments</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_aa8f6526a59c3d7e578dd76a0eab75a0e.html#aa8f6526a59c3d7e578dd76a0eab75a0e">make</a>(set, memory);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    }</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt_a659b4580ea9765561502eaf06e8ba89c.html#a659b4580ea9765561502eaf06e8ba89c">   90</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_a659b4580ea9765561502eaf06e8ba89c.html#a659b4580ea9765561502eaf06e8ba89c">make</a>(TreeSet&lt;Term&gt; set, <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a> memory) {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="keywordflow">if</span> (set.isEmpty()) {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <span class="keywordflow">return</span> null;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        ArrayList&lt;Term&gt; argument = <span class="keyword">new</span> ArrayList&lt;Term&gt;(set);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        String <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term_a059f44677d4580c0eef198dfba957b6b.html#a059f44677d4580c0eef198dfba957b6b">name</a> = <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a97f8c7c396de480e7a650b0afe4829a4.html#a97f8c7c396de480e7a650b0afe4829a4">makeSetName</a>(<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a3bc6ba8295af16e7dc108ea61af132c4.html#a3bc6ba8295af16e7dc108ea61af132c4">SET_EXT_OPENER</a>, argument, <a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_aed850ddff0dd1a47065099f5fccd5dfe.html#aed850ddff0dd1a47065099f5fccd5dfe">SET_EXT_CLOSER</a>);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <a class="code" href="../../d8/db8/classnars_1_1language_1_1Term.html">Term</a> t = memory.<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a63058cc52d77412e0aead8387c23aa93.html#a63058cc52d77412e0aead8387c23aa93">nameToListedTerm</a>(name);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordflow">return</span> (t != null) ? t : <span class="keyword">new</span> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_ab26ebcb2d41a9516f35e6b53bb856223.html#ab26ebcb2d41a9516f35e6b53bb856223">SetExt</a>(argument);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt_ae7668c038aab21eccbd136a152cf540f.html#ae7668c038aab21eccbd136a152cf540f">  104</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_ae7668c038aab21eccbd136a152cf540f.html#ae7668c038aab21eccbd136a152cf540f">operator</a>() {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span> + <a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a3bc6ba8295af16e7dc108ea61af132c4.html#a3bc6ba8295af16e7dc108ea61af132c4">SET_EXT_OPENER</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    @Override</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt_a357c130d05d6c0be69078565644c7a87.html#a357c130d05d6c0be69078565644c7a87">  113</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_a357c130d05d6c0be69078565644c7a87.html#a357c130d05d6c0be69078565644c7a87">isCommutative</a>() {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    }</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    @Override</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="../../de/d1d/classnars_1_1language_1_1SetExt_a815e8222be4a5e3d5a22d0b1ff673793.html#a815e8222be4a5e3d5a22d0b1ff673793">  122</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../de/d1d/classnars_1_1language_1_1SetExt_a815e8222be4a5e3d5a22d0b1ff673793.html#a815e8222be4a5e3d5a22d0b1ff673793">makeName</a>() {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a97f8c7c396de480e7a650b0afe4829a4.html#a97f8c7c396de480e7a650b0afe4829a4">makeSetName</a>(<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_a3bc6ba8295af16e7dc108ea61af132c4.html#a3bc6ba8295af16e7dc108ea61af132c4">SET_EXT_OPENER</a>, <a class="code" href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_ad340d3bb55dcfcdf237fe4ee225d3cbb.html#ad340d3bb55dcfcdf237fe4ee225d3cbb">components</a>, <a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols.html">Symbols</a>.<a class="code" href="../../dc/d71/classnars_1_1io_1_1Symbols_aed850ddff0dd1a47065099f5fccd5dfe.html#aed850ddff0dd1a47065099f5fccd5dfe">SET_EXT_CLOSER</a>);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    }</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_aa8f6526a59c3d7e578dd76a0eab75a0e_html_aa8f6526a59c3d7e578dd76a0eab75a0e"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt_aa8f6526a59c3d7e578dd76a0eab75a0e.html#aa8f6526a59c3d7e578dd76a0eab75a0e">nars.language.SetExt.make</a></div><div class="ttdeci">static Term make(Term t, Memory memory)</div><div class="ttdoc">Try to make a new set from one component. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00067">SetExt.java:67</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_a357c130d05d6c0be69078565644c7a87_html_a357c130d05d6c0be69078565644c7a87"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt_a357c130d05d6c0be69078565644c7a87.html#a357c130d05d6c0be69078565644c7a87">nars.language.SetExt.isCommutative</a></div><div class="ttdeci">boolean isCommutative()</div><div class="ttdoc">Check if the compound is communitative. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00113">SetExt.java:113</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_a97f8c7c396de480e7a650b0afe4829a4_html_a97f8c7c396de480e7a650b0afe4829a4"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a97f8c7c396de480e7a650b0afe4829a4.html#a97f8c7c396de480e7a650b0afe4829a4">nars.language.CompoundTerm.makeSetName</a></div><div class="ttdeci">static String makeSetName(char opener, List&lt; Term &gt; arg, char closer)</div><div class="ttdoc">make the oldName of an ExtensionSet or IntensionSet </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00266">CompoundTerm.java:266</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_html"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt.html">nars.language.SetExt</a></div><div class="ttdoc">An extensionally defined set, which contains one or more instances. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00031">SetExt.java:31</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_ab26ebcb2d41a9516f35e6b53bb856223_html_ab26ebcb2d41a9516f35e6b53bb856223"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt_ab26ebcb2d41a9516f35e6b53bb856223.html#ab26ebcb2d41a9516f35e6b53bb856223">nars.language.SetExt.SetExt</a></div><div class="ttdeci">SetExt(ArrayList&lt; Term &gt; arg)</div><div class="ttdoc">Constructor with partial values, called by make. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00038">SetExt.java:38</a></div></div>
<div class="ttc" id="namespacenars_1_1io_html"><div class="ttname"><a href="../../db/d64/namespacenars_1_1io.html">nars.io</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d26/ExperienceReader_8java_source.html#l00021">ExperienceReader.java:21</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_html"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory.html">nars.storage.Memory</a></div><div class="ttdoc">The memory of the system. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00051">Memory.java:51</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_afb1d9da4ecf7f489cb3a505173ddb205_html_afb1d9da4ecf7f489cb3a505173ddb205"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt_afb1d9da4ecf7f489cb3a505173ddb205.html#afb1d9da4ecf7f489cb3a505173ddb205">nars.language.SetExt.make</a></div><div class="ttdeci">static Term make(ArrayList&lt; Term &gt; argList, Memory memory)</div><div class="ttdoc">Try to make a new SetExt. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00079">SetExt.java:79</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_a659b4580ea9765561502eaf06e8ba89c_html_a659b4580ea9765561502eaf06e8ba89c"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt_a659b4580ea9765561502eaf06e8ba89c.html#a659b4580ea9765561502eaf06e8ba89c">nars.language.SetExt.make</a></div><div class="ttdeci">static Term make(TreeSet&lt; Term &gt; set, Memory memory)</div><div class="ttdoc">Try to make a new compound from a set of components. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00090">SetExt.java:90</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_a815e8222be4a5e3d5a22d0b1ff673793_html_a815e8222be4a5e3d5a22d0b1ff673793"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt_a815e8222be4a5e3d5a22d0b1ff673793.html#a815e8222be4a5e3d5a22d0b1ff673793">nars.language.SetExt.makeName</a></div><div class="ttdeci">String makeName()</div><div class="ttdoc">Make a String representation of the set, override the default. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00122">SetExt.java:122</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_html"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols.html">nars.io.Symbols</a></div><div class="ttdoc">The ASCII symbols used in I/O. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00026">Symbols.java:26</a></div></div>
<div class="ttc" id="namespacenars_1_1storage_html"><div class="ttname"><a href="../../de/ddc/namespacenars_1_1storage.html">nars.storage</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00021">Bag.java:21</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_aee0ef6fd533b58caf22bee2a98eef67d_html_aee0ef6fd533b58caf22bee2a98eef67d"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_aee0ef6fd533b58caf22bee2a98eef67d.html#aee0ef6fd533b58caf22bee2a98eef67d">nars.language.CompoundTerm.isConstant</a></div><div class="ttdeci">boolean isConstant()</div><div class="ttdoc">check if the term contains free variable </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00318">CompoundTerm.java:318</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_a059f44677d4580c0eef198dfba957b6b_html_a059f44677d4580c0eef198dfba957b6b"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term_a059f44677d4580c0eef198dfba957b6b.html#a059f44677d4580c0eef198dfba957b6b">nars.language.Term.name</a></div><div class="ttdeci">String name</div><div class="ttdoc">A Term is identified uniquely by its name, a sequence of characters in a given alphabet (ASCII or Uni...</div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00046">Term.java:46</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_aad126e022fc7ce5cf5ed1112655ba413_html_aad126e022fc7ce5cf5ed1112655ba413"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt_aad126e022fc7ce5cf5ed1112655ba413.html#aad126e022fc7ce5cf5ed1112655ba413">nars.language.SetExt.clone</a></div><div class="ttdeci">Object clone()</div><div class="ttdoc">Clone a SetExt. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00057">SetExt.java:57</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_a7b16a160a4ff942fc44eba1b0d48cbb0_html_a7b16a160a4ff942fc44eba1b0d48cbb0"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt_a7b16a160a4ff942fc44eba1b0d48cbb0.html#a7b16a160a4ff942fc44eba1b0d48cbb0">nars.language.SetExt.SetExt</a></div><div class="ttdeci">SetExt(String n, ArrayList&lt; Term &gt; cs, boolean con, short i)</div><div class="ttdoc">Constructor with full values, called by clone. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00049">SetExt.java:49</a></div></div>
<div class="ttc" id="namespacenars_html"><div class="ttname"><a href="../../d7/d81/namespacenars.html">nars</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1SetExt_ae7668c038aab21eccbd136a152cf540f_html_ae7668c038aab21eccbd136a152cf540f"><div class="ttname"><a href="../../de/d1d/classnars_1_1language_1_1SetExt_ae7668c038aab21eccbd136a152cf540f.html#ae7668c038aab21eccbd136a152cf540f">nars.language.SetExt.operator</a></div><div class="ttdeci">String operator()</div><div class="ttdoc">Get the operator of the term. </div><div class="ttdef"><b>Definition:</b> <a href="../../d3/d96/SetExt_8java_source.html#l00104">SetExt.java:104</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_a5e337444f74e870264191c7fbc13cd6d_html_a5e337444f74e870264191c7fbc13cd6d"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a5e337444f74e870264191c7fbc13cd6d.html#a5e337444f74e870264191c7fbc13cd6d">nars.language.CompoundTerm.complexity</a></div><div class="ttdeci">short complexity</div><div class="ttdoc">syntactic complexity of the compound, the sum of those of its components plus 1 </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00041">CompoundTerm.java:41</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_a3bc6ba8295af16e7dc108ea61af132c4_html_a3bc6ba8295af16e7dc108ea61af132c4"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols_a3bc6ba8295af16e7dc108ea61af132c4.html#a3bc6ba8295af16e7dc108ea61af132c4">nars.io.Symbols.SET_EXT_OPENER</a></div><div class="ttdeci">static final char SET_EXT_OPENER</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00047">Symbols.java:47</a></div></div>
<div class="ttc" id="classnars_1_1io_1_1Symbols_aed850ddff0dd1a47065099f5fccd5dfe_html_aed850ddff0dd1a47065099f5fccd5dfe"><div class="ttname"><a href="../../dc/d71/classnars_1_1io_1_1Symbols_aed850ddff0dd1a47065099f5fccd5dfe.html#aed850ddff0dd1a47065099f5fccd5dfe">nars.io.Symbols.SET_EXT_CLOSER</a></div><div class="ttdeci">static final char SET_EXT_CLOSER</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/da0/Symbols_8java_source.html#l00048">Symbols.java:48</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1Term_html"><div class="ttname"><a href="../../d8/db8/classnars_1_1language_1_1Term.html">nars.language.Term</a></div><div class="ttdoc">Term is the basic component of Narsese, and the object of processing in NARS. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/df2/Term_8java_source.html#l00040">Term.java:40</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_a4f199daa7588f86b81b0912a5e52dfe0_html_a4f199daa7588f86b81b0912a5e52dfe0"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_a4f199daa7588f86b81b0912a5e52dfe0.html#a4f199daa7588f86b81b0912a5e52dfe0">nars.language.CompoundTerm.cloneList</a></div><div class="ttdeci">static ArrayList&lt; Term &gt; cloneList(ArrayList&lt; Term &gt; original)</div><div class="ttdoc">Deep clone an array list of terms. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00381">CompoundTerm.java:381</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_ad340d3bb55dcfcdf237fe4ee225d3cbb_html_ad340d3bb55dcfcdf237fe4ee225d3cbb"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm_ad340d3bb55dcfcdf237fe4ee225d3cbb.html#ad340d3bb55dcfcdf237fe4ee225d3cbb">nars.language.CompoundTerm.components</a></div><div class="ttdeci">ArrayList&lt; Term &gt; components</div><div class="ttdoc">list of (direct) components </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00039">CompoundTerm.java:39</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a63058cc52d77412e0aead8387c23aa93_html_a63058cc52d77412e0aead8387c23aa93"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a63058cc52d77412e0aead8387c23aa93.html#a63058cc52d77412e0aead8387c23aa93">nars.storage.Memory.nameToListedTerm</a></div><div class="ttdeci">Term nameToListedTerm(String name)</div><div class="ttdoc">Get a Term for a given name of a Concept or Operator. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00152">Memory.java:152</a></div></div>
<div class="ttc" id="classnars_1_1language_1_1CompoundTerm_html"><div class="ttname"><a href="../../d0/dee/classnars_1_1language_1_1CompoundTerm.html">nars.language.CompoundTerm</a></div><div class="ttdoc">A CompoundTerm is a Term with internal (syntactic) structure. </div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d0e/CompoundTerm_8java_source.html#l00036">CompoundTerm.java:36</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_ed82ebcd34e530b246c6fd9032262140.html">aruntime</a></li><li class="navelem"><a class="el" href="../../dir_19496ddff8e6c0f2b6654287ecb1a472.html">src</a></li><li class="navelem"><a class="el" href="../../dir_db9c5934f797909f7296c2c2017f7fc9.html">main</a></li><li class="navelem"><a class="el" href="../../dir_6d74390eb6d6287951075e525bcb9bed.html">java</a></li><li class="navelem"><a class="el" href="../../dir_51a24984472456d47100350cd31f9a7c.html">nars</a></li><li class="navelem"><a class="el" href="../../dir_b4d9c5ced2c21fe4bf332c675d1d2c5f.html">language</a></li><li class="navelem"><a class="el" href="../../d3/d96/SetExt_8java.html">SetExt.java</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:58 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
